package com.wisezone.demo0214;

public class Account {
    private double blance;

    public synchronized void addMoney(double ame){
        blance +=ame;
        try{
            Thread.currentThread().sleep(1000);
        }catch (InterruptedException e){
            e.printStackTrace();
        }
        System.out.println(Thread.currentThread().getName()+":"+blance);
    }
}
